$(document).ready(function(){
  $(document).ajaxStart(function(){
    $("#wait").show();
  });
  $(document).ajaxComplete(function(){
    $("#wait").css("display","none");
  });
});
function my_callback(data){
    var content="<div id='inside-content'><p>this is shared by " + data.user + " </p><textarea spellcheck='false' rows='3' name='createPost' id='createPost' style='background-color: #1a124e;width:500px;' placeholder='" + data.message + "'></textarea><br /></div>'";

    $(content).hide().appendTo("#content").fadeIn(1000);

}